package com.naiterui.ehp.bs.b2c.pharmacy.repository;

import java.util.List;
import java.util.Set;

import org.springframework.stereotype.Repository;

import com.naiterui.common.repository.core.BaseJpaRepository;
import com.naiterui.ehp.bs.b2c.pharmacy.entity.WarehouseGoods;

@Repository
public interface IWarehouseGoodsRepository extends BaseJpaRepository<WarehouseGoods, Long> {

    void removeByWarehouseIdAndSkuIdIn(Long warehouseId, Set<Long> skuIds);

    Integer countByWarehouseIdAndStatus(Long warehouseId, Integer status);

    List<WarehouseGoods> getByWarehouseIdAndStatus(Long warehouseId, Integer status);

}
